import axios from '../axios'

/* 
 * 机构管理模块
 */

// 添加
export const add = (data) => {
    return axios({
        url: '/organization/add',
        method: 'post',
        data
    })
}

// 修改
export const edit = (data) => {
  return axios({
    url: '/organization/edit',
    method: 'post',
    data
  })
}

// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/organization/delete',
        method: 'post',
        data
    })
}
// 查询机构树
export const findDeptTree = (data) => {
    return axios({
        url: '/organization/findPage',
        method: 'post',
        data
    })
}
